Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements for block face & liquid occlusion & Fixes for water Z-fighting with transparent blocks #892

Merged
merged 4 commits into from
Nov 22, 2021

Conversation

Altirix
Copy link
Contributor

@Altirix Altirix commented Sep 10, 2021

Before
2021-09-11_00 35 30
2021-09-11_00 35 33
2021-09-11_00 35 35
2021-09-11_00 35 49
2021-09-11_00 35 56

After

2021-09-11_00 35 08
2021-09-11_00 35 10
2021-09-11_00 35 15
2021-09-11_00 35 19
2021-09-11_00 35 25

fixes #858 #859

@Altirix Altirix changed the title Fixes for powedered snow & flower pots - #858 #859 Fixes for powedered snow & flower pots Sep 10, 2021
@Altirix Altirix changed the title Fixes for powedered snow & flower pots Enhancements for powedered snow & flower pots drawing unneeded sides Sep 11, 2021
@Altirix
Copy link
Contributor Author

Altirix commented Sep 11, 2021

After with addition of #89

2021-09-11_06 06 22
2021-09-11_06 06 26
2021-09-11_06 06 46

After fixes for #866
2021-09-11_08 25 31

just noticed i squashed over the commit where i swapped out isfluidexposed to isfluidopaque, can revert back anyway if that is prefered as im not too sure myself anymore as im guessing its probs stylistic or mod compat to go with exposed and java is probs optimising out the invert on the return and inverts on the test anyway and if it doesnt the benefit is probs undetectable anyway.

@Altirix Altirix changed the title Enhancements for powedered snow & flower pots drawing unneeded sides Enhancements for powedered snow & flower pots drawing unneeded sides (waterlogged stairs & slabs too) Sep 11, 2021
Fences, Walls, Carpets, Powdered snow, probs loads im missing
@Altirix Altirix changed the title Enhancements for powedered snow & flower pots drawing unneeded sides (waterlogged stairs & slabs too) Enhancements for block face & liquid occlusion & Fixes for water Z-fighting with transparent blocks Sep 11, 2021
IsFluidExposed -> IsFluidOccluded

IsSideSolid is used to determine if a side would hide the water texture, should be disabled as this can cause Z fighting when further away
@jellysquid3 jellysquid3 added the S-needs-testing Status: Needs testing label Oct 10, 2021
@jellysquid3
Copy link
Member

Great work, and apologies for the late response here. Changes look OK to me and didn't show issues in testing.

@jellysquid3 jellysquid3 merged commit a5ade37 into CaffeineMC:1.17.x/dev Nov 22, 2021
ElectronicManuel pushed a commit to ElectronicManuel/sodium-fabric that referenced this pull request Dec 2, 2021
IMS212 pushed a commit to IMS212/sodium-fabric that referenced this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-needs-testing Status: Needs testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow top face culling for potted cacti, bamboo and azaleas
2 participants